package patterns;

public class Singleton{
	private Singleton() {
	}
	public static Singleton getInstance(){
		return Inner.s;
	}
	static class Inner{
		static Singleton s = new Singleton();//用不到实例就不实例化
	}
}
